import behaviors from "../../../../config/behaviors";

Component({
  behaviors: [behaviors],
  properties: {
    list: {
      type: Array,
      value: []
    }
  },
  data: {},
  methods: {
    handleClick(event) {
      const item = event.currentTarget.dataset.item
      console.log(item)
      // wx.navigateTo({
      //   url: '/sub_product/pages/category/index?id=' + item.id
      // })
      wx.navigateTo({
        url: '/sub_product/pages/detail/index?id=' + item.id
      })
    }
  }
});
